package com.inno.subject.infra.basic.service;

import com.inno.subject.infra.basic.entity.PlannerSubjectCategory;

import java.util.List;

/**
 * (PlannerSubjectCategory)表服务接口
 *
 * @author makejava
 * @since 2024-11-16 20:57:04
 */
public interface PlannerSubjectCategoryService {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    PlannerSubjectCategory queryById(Long id);

    /**
     * 新增数据
     *
     * @param plannerSubjectCategory 实例对象
     * @return 实例对象
     */
    PlannerSubjectCategory insert(PlannerSubjectCategory plannerSubjectCategory);

    /**
     * 修改数据
     *
     * @param plannerSubjectCategory 实例对象
     * @return 实例对象
     */
    PlannerSubjectCategory update(PlannerSubjectCategory plannerSubjectCategory);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(Long id);

    List<PlannerSubjectCategory> queryByIdList(List<Long> categoryIds);

    List<PlannerSubjectCategory> queryAllNotDeletedCategories();

    PlannerSubjectCategory queryByCategoryName(String categoryName);

    List<PlannerSubjectCategory> queryByParentId(Long id);
}
